package ar.com.gep.soccer.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ar.com.gep.soccer.exception.RoundBusinessException;
import ar.com.gep.soccer.facade.TournamentFacade;
import ar.com.gep.soccer.services.RoundService;
import ar.com.gep.soccer.services.dto.RoundDTO;

@Service
public class RoundServiceImpl implements RoundService {

	@Autowired
	private TournamentFacade tournamentFacade;

	@Override
	public RoundDTO save(final RoundDTO rounds) throws RoundBusinessException {
		return tournamentFacade.saveRound(rounds);
	}

	@Override
	public RoundDTO getById(final Long id) throws RoundBusinessException {
		return tournamentFacade.getRound(id);
	}

}
